﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xunit;
using Wicresoft.UnifyShow.Business;
using Wicresoft.UnifyShow.BusinessImpl;

namespace UnifyShowTest
{
    class TestExample
    {
        [Fact]
        public void TestExampleGetCountByName()
        {
            IExample e = new Example();
            Decimal count = e.GetCountByName("11111");
            Assert.Equal<Decimal>(32, count);
        }

        [Fact]
        public void TestExampleGetListExampleByName()
        {
            IExample e = new Example();
            List<ExampleModel> x = e.GetListExampleByName("11111");
            Assert.Equal<Decimal>(32, x.Count);
        }

        [Fact]
        public void TestExampleGetListExampleByNameDirectSql()
        {
            IExample e = new Example();
            List<ExampleModel> x = e.GetListExampleByNameDirectSql("11111");
            Assert.Equal<Decimal>(32, x.Count);
        }

    }
}
